home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
pas_all.zip
/
TI352.ASC
< prev
next >
Wrap
Text File
|
1992-08-12
|
3KB
|
133 lines
PRODUCT : TURBO PASCAL NUMBER : 352
VERSION : 3.01A - 3.02A
OS : PC-DOS
DATE : JULY 1, 1987 : 1/2
TITLE : ADDING DRIVE LETTERS UP TO "Z"
The Turbo Pascal, Version 3.01A, ChDir procedure causes an I/O
error if the drive designator is greater than Q:. This can be
troublesome for installations whose LASTDRIVE is set to a higher
letter. The comparison that enforces this limit is at address 2CA
This patch is worthwhile even if you never use any drive letters
beyond Q, for the change will affect all the programs you
compile. To apply the patch, first make a copy of TURBO.COM, PC-
DOS, Version 3.01A (never patch the original of any program!).
Load
DEBUG TURBO.COM
At DEBUG'S "-" prompt, enter the command U 2CA3. This will
Unassemble the program starting with the instruction at offset
2CA3. The first instruction you see there should be CMP AL, OF.
(If it is not, you are patching the wrong version of Turbo - see
belo
C:\TURBO>debug turbo.com
-u 2ca3
56F9:2CA3 3C0F CMP AL 0F
56F9:2CA5 73A7 JNB 2C4E
-e 2ca4
56F9:2CA4 0F.1b
-u 3737
56F9:3737 3C0F CMP AL,0F
56F9:3739 770C JA 3747
-e 3738
56F9:3738 0F.1b
-w
Writing 9AF7 bytes
-q
To patch the 8087 and BCD versions, follow the same procedure
with different addresses. For TURBO-87.COM, Unassemble at
addresses 2756 and 3200, and Enter the patch at 2757 and 3201.
PRODUCT : TURBO PASCAL NUMBER : 352
VERSION : 3.01A - 3.02A
OS : PC-DOS
DATE : JULY 1, 1987 PAGE : 2/2
TITLE : ADDING DRIVE LETTERS UP TO "Z"
For TURBOBCD.COM, Unassemble at addresses 2BB1 and 3658, and
Enter at 2B
Reprinted by Permission:
PC Magazine
January 13, 1987
(c) 1987 Ziff Communications Company
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.